Optimal. Leaf size=51 \[ \frac {d^2 x}{b^2}-\frac {(b c-a d)^2}{b^3 (a+b x)}+\frac {2 d (b c-a d) \log (a+b x)}{b^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 51, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.069, Rules used = {640, 45}
\begin {gather*} -\frac {(b c-a d)^2}{b^3 (a+b x)}+\frac {2 d (b c-a d) \log (a+b x)}{b^3}+\frac {d^2 x}{b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 640
Rubi steps
\begin {align*} \int \frac {\left (a c+(b c+a d) x+b d x^2\right )^2}{(a+b x)^4} \, dx &=\int \frac {(c+d x)^2}{(a+b x)^2} \, dx\\ &=\int \left (\frac {d^2}{b^2}+\frac {(b c-a d)^2}{b^2 (a+b x)^2}+\frac {2 d (b c-a d)}{b^2 (a+b x)}\right ) \, dx\\ &=\frac {d^2 x}{b^2}-\frac {(b c-a d)^2}{b^3 (a+b x)}+\frac {2 d (b c-a d) \log (a+b x)}{b^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 47, normalized size = 0.92 \begin {gather*} \frac {b d^2 x-\frac {(b c-a d)^2}{a+b x}+2 d (b c-a d) \log (a+b x)}{b^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.66, size = 63, normalized size = 1.24
method | result | size |
default | \(\frac {d^{2} x}{b^{2}}-\frac {a^{2} d^{2}-2 a b c d +b^{2} c^{2}}{b^{3} \left (b x +a \right )}-\frac {2 d \left (a d -b c \right ) \ln \left (b x +a \right )}{b^{3}}\) | \(63\) |
risch | \(\frac {d^{2} x}{b^{2}}-\frac {a^{2} d^{2}}{b^{3} \left (b x +a \right )}+\frac {2 a c d}{b^{2} \left (b x +a \right )}-\frac {c^{2}}{b \left (b x +a \right )}-\frac {2 d^{2} \ln \left (b x +a \right ) a}{b^{3}}+\frac {2 d \ln \left (b x +a \right ) c}{b^{2}}\) | \(86\) |
norman | \(\frac {b \,d^{2} x^{4}-\frac {a^{2} \left (4 a^{2} d^{2}-2 a b c d +b^{2} c^{2}\right )}{b^{3}}-\frac {\left (7 a^{2} d^{2}-2 a b c d +b^{2} c^{2}\right ) x^{2}}{b}-\frac {a \left (10 a^{2} d^{2}-4 a b c d +2 b^{2} c^{2}\right ) x}{b^{2}}}{\left (b x +a \right )^{3}}-\frac {2 d \left (a d -b c \right ) \ln \left (b x +a \right )}{b^{3}}\) | \(129\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 67, normalized size = 1.31 \begin {gather*} \frac {d^{2} x}{b^{2}} - \frac {b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}}{b^{4} x + a b^{3}} + \frac {2 \, {\left (b c d - a d^{2}\right )} \log \left (b x + a\right )}{b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.82, size = 92, normalized size = 1.80 \begin {gather*} \frac {b^{2} d^{2} x^{2} + a b d^{2} x - b^{2} c^{2} + 2 \, a b c d - a^{2} d^{2} + 2 \, {\left (a b c d - a^{2} d^{2} + {\left (b^{2} c d - a b d^{2}\right )} x\right )} \log \left (b x + a\right )}{b^{4} x + a b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.19, size = 60, normalized size = 1.18 \begin {gather*} \frac {- a^{2} d^{2} + 2 a b c d - b^{2} c^{2}}{a b^{3} + b^{4} x} + \frac {d^{2} x}{b^{2}} - \frac {2 d \left (a d - b c\right ) \log {\left (a + b x \right )}}{b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.74, size = 65, normalized size = 1.27 \begin {gather*} \frac {d^{2} x}{b^{2}} + \frac {2 \, {\left (b c d - a d^{2}\right )} \log \left ({\left | b x + a \right |}\right )}{b^{3}} - \frac {b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}}{{\left (b x + a\right )} b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.08, size = 71, normalized size = 1.39 \begin {gather*} \frac {d^2\,x}{b^2}-\frac {a^2\,d^2-2\,a\,b\,c\,d+b^2\,c^2}{b\,\left (x\,b^3+a\,b^2\right )}-\frac {\ln \left (a+b\,x\right )\,\left (2\,a\,d^2-2\,b\,c\,d\right )}{b^3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________